<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
      <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title></title>
    <link href="../assets/css/bootstrap.css" rel="stylesheet" />
    <link href="../assets/css/font-awesome.css" rel="stylesheet" />
    <link href="../assets/css/custom-styles.css" rel="stylesheet" />
    <link href="../assets/css/dataTables.bootstrap.css" rel="stylesheet" />
    <link href="../assets/dist/summernote-lite.css" rel="stylesheet">
</head>
<body>
    <div id="wrapper">
        <div id="page-wrapper">
            <div id="page-inner">
			 <div class="row">
                    <div class="col-md-12">
                        <h1 class="page-header">
                            <i class="fa fa-user">&nbsp;</i>发布/修改文章
                        </h1>
                    </div>
                    <div class="modal-dialog"  style="width:1148px;float:left;">
                        <div class="modal-content">
                            <div class="modal-body">
                                <div class="form-group input-group">
                                 <span class="input-group-addon">文章标题<font style="color:red;margin-left:5px;">*</font></span>
                                 <input type="text" id="id" hidden="hidden">
                                 <input type="text" id="title" class="form-control" placeholder="请输入文章标题" maxlength="50">
                             </div>
                             <div class="form-group input-group">
                                 <span class="input-group-addon">作&nbsp;&nbsp;者<font style="color:red;margin-left:5px;">*</font></span>
                                 <input type="text" id="author" class="form-control" placeholder="请输入作者" maxlength="50">
                             </div>
                             <div class="form-group input-group">
                                 <span class="input-group-addon">文章类型<font style="color:red;margin-left:5px;">*</font></span>
                                 <select class="form-control" id="menuid">
                                 	
                                 </select>
                             </div>
                             <div class="form-group input-group">
                                 <span class="input-group-addon">文章来源<font style="color:red;margin-left:5px;">*</font></span>
                                 <input type="text" id="source" class="form-control" placeholder="请输入文章来源" maxlength="10">
                             </div>
                             <div class="form-group input-group">
                                 <span class="input-group-addon">文章内容<font style="color:red;margin-left:5px;">*</font></span>
                                 <div id="content">asdasdads</div>
                             </div>
                            </div>
                            <div class="modal-footer">
                                <button type="button align-left" class="btn btn-default">重置</button>
                                <button type="button" class="btn btn-primary" onclick="save()">保存</button>
                            </div>
                        </div>
                    </div>
                </div> 
	        </div>
	    </div>
    </div>
    <script src="../assets/js/jquery-1.10.2.js"></script>
	<script src="../../common/cookie.js"></script>
	<script src="../assets/js/jquery.cookie.js"></script>
	<script src="../assets/dist/summernote-lite.js"></script>
	<script src="../assets/dist/lang/summernote-zh-CN.js"></script>
	<script type="text/javascript">
		$(document).ready(function() {
		  $('#content').summernote({
			  tabsize: 2,
			  height: 500,
			  lang:'zh-CN',
			  callbacks:{
			        onImageUpload: function(files, editor, $editable) {
			            UploadFiles(files,insertImg);
			        }
			    }
		  });
		});
		
		function save(){
			console.info($("#content").html());
		}
	</script>
</body>
</html>
